alias proj-mysql='mysql -A -h HOST -P 3306 -u USER -p'\''PASSWORD'\'' DATABASE'

alias proj-redis='redis-cli -h HOST -p 6379'

alias proj-mongo='mongo HOST:27017/COLLECTION -u USER  -p'\''PASSWORD'\'''

FORMAT=$(cat <<'EOF'

import sys
import json
str=""
for line in sys.stdin:
    str+=line
print json.dumps(json.loads(str), ensure_ascii=False, indent=4, sort_keys=True)

EOF
)

alias proj-metrics="curl -G HOST:PORT/metrics | python -c '$FORMAT'"
